﻿<controls:ChildWindow x:Class="DeepEarth.BingMapsToolkit.Client.Controls.Dialogs.LayerVectorDataDlg"
		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
		xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
		Width="367" Height="453"
		xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
		Title="LayerVectorData">
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
		
		<data:DataGrid Name="VectorData"  AutoGenerateColumns="False" Margin="12,12,12,0" VerticalScrollBarVisibility ="Auto">
			<data:DataGrid.Columns>
				<data:DataGridTemplateColumn>
					<data:DataGridTemplateColumn.CellTemplate>
						<DataTemplate>
							<Button Content=" Goto " Click="GotoButton_Click" DataContext="{Binding BindsDirectlyToSource=True}"></Button>
						</DataTemplate>
					</data:DataGridTemplateColumn.CellTemplate>
				</data:DataGridTemplateColumn>
				<data:DataGridTextColumn Binding="{Binding ID}" Header="ID" />
				<data:DataGridTextColumn Binding="{Binding Additional}" Header="Additional" />
			</data:DataGrid.Columns>
		</data:DataGrid>
		
		<Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="1" />
    </Grid>
</controls:ChildWindow>